package com.kc.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kc.bean.Groud;
import com.kc.mapper.GroudMapper;
import com.kc.service.IGroudService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2019-10-16
 */
@Service
public class GroudServiceImpl extends ServiceImpl<GroudMapper, Groud> implements IGroudService {

    @Resource
    private GroudMapper groudMapper;

    @Override
    public List<String> GetAllRole(String userId) {
        return groudMapper.GetAllRole(Wrappers.<Groud>lambdaQuery().le(Groud::getAccountId,userId));
    }
}
